/*
 * @Descripttion: 
 * @version: 
 * @Author: lsy
 * @Date: 2022-01-25 16:22:06
 * @LastEditors: lsy
 * @LastEditTime: 2022-01-27 11:53:58
 */

// 此文件须在入口文件main.js第一个引入，不然会导致配置的__webpack_public_path__不生效，获取不到静态资源

const config = require('../../vue.config');

if (window.__POWERED_BY_QIANKUN__) {
    if (process.env.NODE_ENV === 'development') {
        __webpack_public_path__ = `//localhost:${config.devServer.port}${config.publicPath}`
    } else {
        __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
    }
}